package cn.coconet.clothingguide.model;

import dev.langchain4j.data.message.ChatMessage;

/**
 * 自定义响应类（与内置ChatResponse区分开）
 */
public class CustomChatResponse {
    private ChatMessage message; // 模型返回的消息
    private boolean success;     // 请求是否成功
    private String error;        // 错误信息

    // 自定义构造器（接收消息和成功状态）
    public CustomChatResponse(ChatMessage message, boolean success) {
        this.message = message;
        this.success = success;
    }

    // Getter和Setter
    public ChatMessage getMessage() { return message; }
    public boolean isSuccess() { return success; }
    public void setError(String error) { this.error = error; }
    public String getError() { return error; }
}